﻿var Stype=require("./Cmd").Stype;

var NetType={
	TCP:1,
	WS:2
};


var server_config={
	NetType:NetType,
	Stype:Stype,

	//web_server
	web_server:{
		host:"127.0.0.1", //以后填写外网ip:47.100.80.231
		port:6080
	},

	//数据库sql
	database_sql:{
		host:"127.0.0.1",
		port:3306,
		db_name:"car_race",
		uname:"root",
		upwd:"123456" //云服务器上密码:wsyf103012
	},
	
	//数据库redis
	database_redis:{
		host:"127.0.0.1",
		port:6379,
		db_index:0,
	},


	//网关服务器
	gateway:{
		ntype:NetType.WS,
		host:"127.0.0.1", //以后填写外网ip:172.19.72.251
		port:6081,
	},


	//GameSys服务器
	gameSys_server:{
		ntype:NetType.WS,
		host:"127.0.0.1",
		port:6082,
		stypes:[Stype.GameSys]
	},


	//CarRace服务器
	/*carRace_server:{
		ntype:NetType.WS,
		host:"127.0.0.1",
		port:6083,
		stypes:[Stype.CarRace] //一个服务带3个区
	},*/

};

module.exports = server_config;